//
// Created by wangwanlong on 2024/6/17.
//

#ifndef MCGPP_RATING_TIE_BREAKING_POLICY_H
#define MCGPP_RATING_TIE_BREAKING_POLICY_H

#include "randomize.h"
#include "macros.h"

namespace mcgpp {
  //等概率随机选择一个
  class RandomRatingWins {
  public:
    //count >= 0
    MCGPP_ATTRIBUTE_ALWAYS_INLINE static bool acceptEqual(int count) {
      return Randomize::instance().getRandomInt(0, count) == 0;
    }
  };
}
#endif //MCGPP_RATING_TIE_BREAKING_POLICY_H
